package nieAS.event {
	import flash.events.*;
	
	public class SoundEvent extends Event {
		public static const SOUND_BEGIN_LOAD:String = "soundBeginLoad"; //开始加载
		public static const SOUND_BEGIN:String = "soundBegin"; //开始播放
		public static const SOUND_STOP:String = "soundStop"; //停止播放
		public static const SOUND_PAUSE:String = "soundPause"; //暂停播放
		public static const SOUND_RESUME:String = "soundResume"; //继续播放
		public static const SOUND_COMPLETED:String = "soundCompleted"; //播放结束
		public static const VOLUME_CHANGE:String = "volumeChange"; //音量变化
		
		private var _value:* = null;
		
		public function get value():* {
			return _value;
		}
		
		public function SoundEvent(type:String, $value:* = null, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_value = $value;
		}
	}
}